package com.bishe.bishe.Service.ServiceImpl;

import com.bishe.bishe.Service.FeedbackService;
import com.bishe.bishe.dao.mapper.FeedbackMapper;
import com.bishe.bishe.pojo.Feedback;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FeedbackServiceImpl implements FeedbackService {
    @Autowired
    private FeedbackMapper feedbackMapper;
    @Override
    public Feedback findByCommentId(Integer commentId) {
        return feedbackMapper.findByCommentId(commentId);
    }

    @Override
    public Feedback findById(Integer feedbackId) {
        return feedbackMapper.findById(feedbackId);
    }

    @Override
    public int add(Integer commentId) {
        return feedbackMapper.insert(commentId);
    }

    @Override
    public int update(Feedback feedback) {

        return feedbackMapper.update(feedback);
    }


}
